from surrounded_regions import Solution


def test():

    regions = [["X","X","X","X"],["X","O","O","X"],["X","X","O","X"],["X","O","X","X"]]
    # regions = [["X","O","X"],["X","O","X"],["X","O","X"]]
    Solution().solve(regions)
    assert regions == [["X","X","X","X"],["X","X","X","X"],["X","X","X","X"],["X","O","X","X"]]

def test1():
    
    regions = [["X","O","X"],["X","O","X"],["X","O","X"]]
    Solution().solve(regions)
    assert regions == [["X","O","X"],["X","O","X"],["X","O","X"]]

def test2():
    
    regions = [["X","O","X"],["X","O","X"],["X","X","X"]]
    Solution().solve(regions)
    assert regions == [["X","O","X"],["X","O","X"],["X","X","X"]]

def test3():
    
    regions = [["X","X","X"],["X","O","X"],["X","X","X"]]
    Solution().solve(regions)
    assert regions == [["X","X","X"],["X","X","X"],["X","X","X"]]
